package main  

import
	"fmt"
/*	"os"
)

//const length = 10


const contest = [9][10] int{
	{1,2,3,10,4,9,5,8,6,7},
	{1,3,2,4,5,10,6,9,7,8},
	{1,4,2,6,3,5,7,10,8,9},
	{1,5,2,8,3,7,4,6,9,10},
	{1,6,2,10,3,9,4,8,5,7},
	{1,7,2,3,4,10,5,9,6,8},
	{1,8,2,5,3,4,6,10,7,9},
	{1,9,2,7,3,6,4,5,8,10},
	{1,10,2,9,3,8,4,7,5,6}}

type team struct{
	//定义数据域
	num int  //编号
	goal int   //得分
	goal_difference int   //净胜球
	goals int  //总胜球
	score int  //积分
	//定义指针域
	next *team  //指向下一个
}

func create() *team{            //初始化链表
	head := &team{num:0}
	head.next = nil
}

func check_input()(int){     //判断用户输入是否合法。若合法则返回用户输入，不合法为-1
	i := 0
	flag := 0
	a[10] := 0							
	fmt.scanf("%s", a)
	flag = atoi(a)
	for i=0; i<4; i++{
		if (a[i]<48 || a[i]>57) && a[i] !=0 {
			flag = -1
			break
		}
		if a[i] == 0{
			break
		}
	}
	return flag
}

func check_input_goal()(round int, i int){      //判断用户输入是否合法，得分是否高得离谱
	fmt.Printf("请输入队伍积分：%d",contest[round][i])
	goal := 0
	while{
		goal = check_input()
		if goal == -1{
			fmt.Printf("")
		}
	}
}    */

func Menu(){
	/*head*team = nil
	board[length][length]*team = {0}
	char ch
	a := 0*/
	fmt.Printf("---------------开始-----------------\n")
	fmt.Printf("-----------1.输入得分\n")
	fmt.Printf("-----------2.输出积分榜\n")
	fmt.Printf("-----------3.退出\n")
	fmt.Printf("请输入你的选择：")
	/*a = getchar()
	while (ch = getchar()) != '\n'{

	}
	switch (a){
	case '1':
		if head != nil{
		fmt.Printf("你已经输入过了，请重新选择：\n")
		break
		}

	}*/
}

func main(){
	fmt.Printf("**************************************************\n")
	fmt.Printf("***********欢迎来到足球比赛积分排行榜系统************\n")
	fmt.Printf("**************************************************\n")
	fmt.Printf("*****************接下来进入开始菜单*****************\n")
	fmt.Printf(" \n")
	fmt.Printf(" \n")
	Menu()
}